﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Test_LYK.Models;
using Test_LYK.Repository;

namespace Test_LYK.Domain
{
    public class FoodDomain
    {
        public bool AddFood(string food)
        {
            return new FoodReposiroty().AddFood(food);
        }

        public bool ModifyFood(int id, string food)
        {
            return new FoodReposiroty().ModifyFood(id, food);
        }

        public List<FoodModel> GetFoodList()
        {
            return new FoodReposiroty().GetFoodList();
        }
    }
}